package com.ywl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ywl
 * @since 2022-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("评论模型")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名
     */
    @TableField(value = "phone")
    @ApiModelProperty("用户名")
    private String username;

    /**
     * 评论
     */
    @ApiModelProperty("评论内容")
    private String comment;

    /**
     * 星级 0~5
     */
    @ApiModelProperty("星级")
    private Integer star;

    /**
     * 房屋id
     */
    @ApiModelProperty("房屋id")
    private Long detailId;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private Long orderId;
}
